]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st_theme_node_get_color: fix inheritance
authorDan Winship <danw@gnome.org>
Tue, 19 Oct 2010 17:59:49 +0000 (13:59 -0400)
committerDan Winship <danw@gnome.org>
Thu, 21 Oct 2010 13:13:30 +0000 (09:13 -0400)
This wasn't actually recursing if you passed the "inherit" flag

https://bugzilla.gnome.org/show_bug.cgi?id=632590

src/st/st-theme-node.c

index b7091203102061e736b78dc5ad278ca1de7b8679..5561162e101e9061a1dc30edbeebc05c66889a22 100644 (file)
@@ -542,6 +542,9 @@ st_theme_node_get_color (StThemeNode  *node,
         }
     }
 
+  if (inherit && node->parent_node)
+    return st_theme_node_get_color (node->parent_node, property_name, inherit, color);
+
   return FALSE;
 }